package com.jz.algorithm.Tree;

import java.util.ArrayList;
import java.util.List;

/**
 * @Classname TreeNode
 * @Description 树节点
 * @Date 2021-12-20 15:33
 * @Author Jz
 * @Version
 */
public class TreeNode<T> {
    T value;
    TreeNode<T> rightNode;
    TreeNode<T> leftNode;

    public T getValue() {
        return value;
    }

    public void setValue(T value) {
        this.value = value;
    }

    public TreeNode<T> getRightNode() {
        return rightNode;
    }

    public void setRightNode(TreeNode<T> rightNode) {
        this.rightNode = rightNode;
    }

    public TreeNode<T> getLeftNode() {
        return leftNode;
    }

    public void setLeftNode(TreeNode<T> leftNode) {
        this.leftNode = leftNode;
    }


}
